﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace ZGEDrySaltery.Web.offer
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int OFFERID=(Convert.ToInt32(strid));
					ShowInfo(OFFERID);
				}
			}
		}
		
	private void ShowInfo(int OFFERID)
	{
		ZGEDrySaltery.BLL.offer bll=new ZGEDrySaltery.BLL.offer();
		ZGEDrySaltery.Model.offer model=bll.GetModel(OFFERID);
		this.lblOFFERID.Text=model.OFFERID.ToString();
		this.lblCOMPANYID.Text=model.COMPANYID.ToString();
		this.lblUSERID.Text=model.USERID.ToString();
		this.lblUSERNAME.Text=model.USERNAME;
		this.lblREALNAME.Text=model.REALNAME;
		this.lblTITLE.Text=model.TITLE;
		this.lblUNIT.Text=model.UNIT;
		this.lblSPECIFICATIONSSTR.Text=model.SPECIFICATIONSSTR;
		this.lblVIPPRICE.Text=model.VIPPRICE.ToString();
		this.lblMARKETPRICE.Text=model.MARKETPRICE.ToString();
		this.lblMINPRICE.Text=model.MINPRICE.ToString();
		this.lblPIFAPRICE.Text=model.PIFAPRICE.ToString();
		this.lblPCID.Text=model.PCID.ToString();
		this.lblINTRO.Text=model.INTRO;
		this.lblAREA.Text=model.AREA;
		this.lblRECOMMEND.Text=model.RECOMMEND.ToString();
		this.lblSORT.Text=model.SORT.ToString();
		this.lblIMAGES.Text=model.IMAGES;
		this.lblINVENTORYCOUNT.Text=model.INVENTORYCOUNT.ToString();
		this.lblTRADETOTAL.Text=model.TRADETOTAL.ToString();
		this.lblSTATE.Text=model.STATE.ToString();
		this.lblMEMO.Text=model.MEMO;
		this.lblINSERTTIME.Text=model.INSERTTIME.ToString();
		this.lblMODIFYTIME.Text=model.MODIFYTIME.ToString();
		this.lblF1.Text=model.F1;
		this.lblF2.Text=model.F2;
		this.lblF3.Text=model.F3;
		this.lblF4.Text=model.F4;

	}


    }
}
